﻿using System;
using Sustainalytics.Entities;

namespace Sustainalytics.ReportGenerator.BL
{
    public class RenderResult : IEntity, Entities.IFileContent
    {
        public Guid Id { get; set; }
        public ReportType ReportType { get; set; }
        public Guid CompanyId { get; set; }

        public FileType FileType { get; set; }
        public TimeSpan RenderDuration { get; set; }

        public string FileName { get; set; }
        public string MimeType { get; set; }
        public byte[] FileContent { get; set; }
    }

    public class PregeneratedReport
    {
        public Guid Id { get; set; }
        public Guid CompanyId { get; set; }
        public string ReportType { get; set; }
        public string DatabaseGroup { get; set; }
        
        public DateTime GenerationDate { get; set; }
        public string FileName { get; set; }

        public bool IsSuccessfullyGenerated { get; set; }
        public string Error { get; set; }

        public TimeSpan RenderDuration { get; set; }
    }
}
